import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    elementType: 0,
    kjzDataType: 0
  },
  getters: {
  },
  mutations: {
    changeElementType(state,value){
      state.elementType = value
    },

  },
  actions: {
    setElementType(context,value){  
      context.commit('changeElementType',value)
     }
  },
  modules: {
  }
})
